<?php
 /**
 +------------------------------------------------------------------------------
 * Loader for ePHP
 +------------------------------------------------------------------------------
 * @Version  3.2
 * @Author   WangXian
 * @E-mail    admin@loopx.cn
 * @package  libraries
 * @Creation  date 2011-06-04 23:15:26
 * @Modified  date 2011-06-04 22:24:46
 +------------------------------------------------------------------------------
 */
class Loader
{
	/**
	 * 加载函数
	 * @param string $helper
	 */
	public static function helper($helper)
	{
		$helper = APP_PATH.'/exts/helper/'.$helper.'.php';
		try
		{
			include_once $helper;
		}
		catch (Exception $e)
		{
			throw new ephpException("加载helper失败，$helper 不存在。",110604);
		}
	}
}